import React, {Component} from 'react';
import PropTypes from 'prop-types';

export default class ErrorBlock extends Component {
  static propTypes = {
    error: PropTypes.object,
  }

  render() {
    return <div className="error-block">{this.props.error.message}</div>;
  }
}
